package com.itheima.stock.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * 外盘指数信息
 */
@ApiModel(description = "外盘指数信息")
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
public class Stock4OuterMarketDomain {
    /**
     * 大盘名称
     */
    @ApiModelProperty(value = "大盘名称", position = 1)
    private String name;

    /**
     * 大盘点数
     */
    @ApiModelProperty(value = "大盘点数", position = 2)
    private BigDecimal curPoint;

    /**
     * 涨跌指数
     */
    @ApiModelProperty(value = "涨跌指数", position = 3)
    private BigDecimal upDown;

    /**
     * 涨幅
     */
    @ApiModelProperty(value = "涨幅", position = 4)
    private BigDecimal rose;


    /**
     * 当前时间
     */
    @JsonFormat(pattern = "yyyyMMdd")
    @ApiModelProperty(value = "当前时间", position = 5)
    private Date curTime;

}
